package org.example.curriculum_design_6_16.service;

import org.example.curriculum_design_6_16.entity.pojo.ResearchPaper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.curriculum_design_6_16.entity.vo.ResearchPaperVo;
import org.example.curriculum_design_6_16.entity.vo.Result;
import java.util.List;

/**
* @author 郑凯
* @description 针对表【research_paper(学术论文记录表)】的数据库操作Service
* @createDate 2025-06-23 09:55:21
*/
public interface ResearchPaperService extends IService<ResearchPaper> {
    int addResearchPaper(ResearchPaper paper);
    int updateResearchPaper(ResearchPaper paper);
    int deleteResearchPaper(Integer id);
    ResearchPaperVo getResearchPaperById(Integer id);
    List<ResearchPaperVo> getResearchPapersByStudentId(String studentId);
    List<ResearchPaperVo> getAllResearchPapers();
    int approveResearchPaper(Integer id, String comment);
    int rejectResearchPaper(Integer id, String comment);
    double getTotalPaperScore(String studentId);
    
    /**
     * 获取学生在指定学年的论文总分
     * @param studentId 学生ID
     * @param academicYear 学年
     * @return 论文总分
     */
    double getTotalPaperScore(String studentId, String academicYear);
}
